import Layout from '@/layout'

const casesRouter = {
  path: '/cases',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Cases',
  meta: {
    title: 'cases',
    icon: 'excel'
  },
  children: [
    {
      path: 'list',
      component: () => import('@/views/cases/mycase'),
      name: 'CaseList',
      meta: { title: 'mycases', noCache: true }
    },
    {
      path: 'detail',
      component: () => import('@/views/cases/casedetail'),
      name: 'CaseDetail',
      meta: { title: '案件详情', noCache: true }
    },
    {
      path: 'evidence',
      component: () => import('@/views/cases/components/EvidenceDetail'),
      name: 'EvidenceDetail',
      meta: { title: '证据详情', noCache: true }
    }
  ]
}

export default casesRouter
